<?php
namespace app\admin\validate;

use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'title'=>'require',
        'c_id' => 'require',
    ];
    protected $message = [
        'title.require' => '请输入标题',
        'c_id.require' => '请选择分类',
    ];

}